#!/usr/bin/env python3
import sys
from pathlib import Path


def ensure_src_on_path() -> None:
    project_root = Path(__file__).resolve().parent
    src_dir = project_root / "src"
    if str(src_dir) not in sys.path:
        sys.path.insert(0, str(src_dir))


def main() -> int:
    ensure_src_on_path()
    from cat_photo_ui.app import run_application

    return run_application(sys.argv[1:])


if __name__ == "__main__":
    raise SystemExit(main())


